﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class SceneActorAvatar:SceneAvatarBase
{

    public AnimationControl animationControl;

    protected override void OnInitComplete()
    {
        base.OnInitComplete();
        animationControl = actorGO.AddComponent<AnimationControl>();
        animationControl.enabled = true;
    }

	public void PlayAnimation(AnimationType type){
		if (animationControl != null)
			animationControl.PlayAnimation (type);
	}

    public void PlayAnimation(string name)
    {
        if (animationControl != null)
            animationControl.PlayAnimation(name);
    }

}
